package cn.doctorpda.conference.ui;

import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.support.v4.app.Fragment;
import android.text.TextUtils;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.view.animation.Animation;
import android.view.animation.LinearInterpolator;
import android.view.animation.RotateAnimation;

import cn.doctorpda.conference.R;
import cn.doctorpda.conference.ui.common.DetailActivity;
import cn.doctorpda.conference.utils.AESUtil;

/**
 * User DELL
 * Date 2016/5/25.
 */
public class SwitchAccountActivity extends BaseActivity {

    private String username, password;
    private boolean isSuccess;
    private Handler handler;
    private int flag;



    @Override
    protected Fragment createFragment() {
        return SwitchAccountFragment.newInstance(username, password, flag);
    }

    @Override
    protected int getLayoutResId() {
        return R.layout.activity_base;
    }

    @Override
    public void onCreate(Bundle savedInstanceState) {
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
        Bundle extras = getIntent().getExtras();
        if (extras != null) {
            username = extras.getString("username");
            password = extras.getString("password");
            password = AESUtil.decrypt(password, "doctorpda8888888", "");
            flag = extras.getInt("flag", -1);
        }
        super.onCreate(savedInstanceState);
    }

}
